package cn.yh.nft.turbo.base.statemachine;

/**
 * @ClassName: StateMachine
 * @Author: 草莓爱上啵啵
 */
public interface StateMachine<STATE,EVENT> {


    /**
     * 状态机转换
     * @param state 当前状态
     * @param event 触发后的事件
     * @return 转换后的新状态
     */
    public STATE transition(STATE state, EVENT event);
}
